package cn.bx.bid.ctrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
//@RequestMapping("/admin")
public class HelloController {
    @RequestMapping("/sayHi")
    public String sayHello(HttpServletRequest request){
        request.setAttribute("notice","上午好，spring mvc,当前时间是："+new java.util.Date());
        //return "hello.jsp";//视图的地址
        return "forward:hello.jsp";//视图的地址
    }
}
